package staticDemo;

public class StudentDemo {
    public static void main(String[] args) {
        Student.graduateFrom ="尚大";
        //创建对象
        Student stu1 = new Student("迪丽热巴", 18, "新疆大学");
        Student stu2 = new Student("古力娜扎", 20, "中央戏曲学院");
        Student stu3 = new Student("马尔扎哈", 19, "虚空大学");

        stu2.setGraduateFrom("卡内基梅陇大学");

        stu1.show();
        stu2.show();
        stu3.show();
    }

    //在main方法所在类中定义方法必须加static
    }
